package com.natalia.excel.service.impl;

import com.natalia.excel.service.AsyncService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Author yang
 **/
@Slf4j
@Service
public class AsyncServiceImpl implements AsyncService {

    @Override
    @Async("asyncTaskExecutor")
    public void todo() {
        log.info("{}:async test ... ",Thread.currentThread().getName());
    }
}
